package com.jnu.hc.jnuhcusercms.controller;

import com.jnu.hc.jnuhcusercms.domain.Users;
import com.jnu.hc.jnuhcusercms.dto.ResponseObject;
import com.jnu.hc.jnuhcusercms.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RegisterController {
    @Autowired
    RegisterService registerService;

    @RequestMapping("/saveUsers")
    public ResponseObject<Users> saveUsers(@RequestBody Users users){
        ResponseObject<Users> responseObject = registerService.saveUsers(users);
        return responseObject;

    }

}